package com.example.moudlec.controller;

import com.example.moudlec.service.Quality_controlDtService;
import com.mycloud.api.pojo.Quality_controlDt;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@SuppressWarnings("all")
@RestController
@RequestMapping("/moudlec/qualitydt")
public class QualityDtController {
    @Autowired
    Quality_controlDtService service;

    @RequestMapping("/addQcDt")
    public void addQcDt(@RequestBody Quality_controlDt qt) {
        service.addQcDt(qt);
    }

    @RequestMapping("/selContDt")
    public List<Quality_controlDt>  selCont(Integer productId, Long orderId) {
        return service.selCont(productId, orderId);
    }
}
